package com.cloud.system.api.mapper;

import com.cloud.system.api.entity.HumanRole;
import com.cloud.system.common.utils.BaseMapperHelper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface HumanRoleMapper extends BaseMapperHelper<HumanRole> {

    @Delete("delete from human_role where human_id = (select human_id from human_info where unit_id = #{unitId} and human_type = '00')")
    void deleteHuman(Long unitId);
}